package  org.fantasy.cpp.core.pojo;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.PK;
import org.nutz.dao.entity.annotation.Table;

import  org.fantasy.cpp.core.annotation.Field;

/**
 * 查询条件扩展属性
 * 
 * @author 王文成
 * @version 1.0
 * @since 2011-7-5
 */
@Table("ITEM_EXTEND")
@PK({"item_id", "attr_id"} )
public class ItemExtend {
	
	@Column("item_id") 
	@Field(desc="查询条件id",nullable=false) 
	private Long itemId; 

	@Column("attr_id") 
	@Field(desc="属性id",nullable=false) 
	private Long attrId; 

	@Column("attr_value") 
	@Field(desc="条件id",nullable=false,maxlenth=128) 
	private String attrValue; 

	@Column("state") 
	@Field(desc="状态",nullable=false,maxlenth=3) 
	private String state;

	public Long getItemId() {
		return itemId;
	}

	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}

	public Long getAttrId() {
		return attrId;
	}

	public void setAttrId(Long attrId) {
		this.attrId = attrId;
	}

	public String getAttrValue() {
		return attrValue;
	}

	public void setAttrValue(String attrValue) {
		this.attrValue = attrValue;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	} 
}